package com.kf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author RenYuXin
 * 2019/11/28 11:04
 * Approval审批表
 */
@Data
@TableName("approval")
public class Approval {
    /**
     * 主键
     */
    @TableId(value = "approval_id",type = IdType.AUTO)
    private Integer approvalId;
    /**
     * 审批类型(**审批类型表外键**)
     */
    @TableField(value = "approval_category_id")
    private Integer approvalCategoryId;
    /**
     * 内容
     */
    @TableField(value = "approval_content")
    private String approvalContent;
    /**
     * 备注
     */
    @TableField(value = "approval_remark")
    private String approvalRemark;
    /**
     * 请假类型
     */
    @TableField(value = "approval_type_id")
    private String approvalTypeId;
    /**
     * 差旅、报销总金额
     */
    @TableField(value = "approval_money")
    private BigDecimal approvalMoney;
    /**
     * 开始时间
     */
    @TableField(value = "approval_start_time")
    private String approvalStartTime;
    /**
     * 结束时间
     */
    @TableField(value = "approval_end_time")
    private String approvalEndTime;
    /**
     * 时长
     */
    @TableField(value = "approval_duration")
    private BigDecimal approvalDuration;
    /**
     * 创建人ID
     */
    @TableField(value = "approval_createuser_id")
    private Integer approvalCreateuserId;
    /**
     * 创建时间
     */
    @TableField(value = "approval_createtime")
    private String approvalCreatetime;
    /**
     * 更新时间
     */
    @TableField(value = "approval_updatetime")
    private String approvalUpdatetime;
    /**
     * 附件批次id(**对应文件表的批次id**)
     */
    @TableField(value = "approval_batch_id")
    private String approvalBatchId;
    /**
     * 预留字段1
     */
    @TableField(value = "approval_exit1")
    private String approvalExit1;
    /**
     * 预留字段2
     */
    @TableField(value = "approval_exit2")
    private Integer approvalExit2;

}
